package ${package}.utils;

import com.ishansong.common.config.Config;
import com.ishansong.common.config.ConfigCenter;

/**
 * Author: sid
 * Date:   17/11/26 下午4:58
 */

public class RedisConfig {
    private static Config config = null;

    static{
        try{
            //读取配置文件配置
            config = ConfigCenter.getConfig("redis.properties");
        }catch (Exception e){
            e.printStackTrace();
        }
    }

    public static String getRedisHost(){
        return config.getString("redis.host");
    }

    public static int getRedisPort(){
        return config.getInt("redis.port");
    }

}
